package com.walle.concurrenttest.pattern.threadpermessage;

/**
 * @author zhangjiapeng
 * @Package com.walle.concurrenttest.pattern.threadpermessage
 * @Description: ${todo}
 * @date 2019/2/21 14:25
 */
public class Host {

    private final Helper helper = new Helper();

    public void request(final int count, final char c){
        System.out.println(" request count <" + c + "> begin");
        new Thread(){
            @Override
            public void run() {
                helper.handle(count,c);
            }
        }.start();
        System.out.println(" request count <" + c + "> end");

    }
}
